﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ImageRecognition2.Action
{
    public class ActionExecuteLastExecutedFilter : AbstractCommand
    {
        public ActionExecuteLastExecutedFilter()
        {

        }

        internal ActionExecuteLastExecutedFilter(ActionExecuteLastExecutedFilter _ActionExecuteLastExecutedFilter)
        {
        }

        public override void Run(object sender, EventArgs e)
        {
            if (MainFormSingleton.LastExecutedFilter == null) return;
            MainFormSingleton.LastExecutedFilter.Execute(MainFormSingleton.ActivePictureBox.BackgroundImage);
        }
    
        public override object Clone()
        {
            return new ActionExecuteLastExecutedFilter(this);
        }
    }
}
